/**
 * Created by kangdaye on 16/5/15.
 */
app.service('employeeService',["$http", function($http) {
    this.add = function (postData,callback) {
        $http.post(servicePath + 'employee/add',postData).success(callback);
    };

    this.update = function (postData,callback) {
        $http.post(servicePath + 'employee/update',postData).success(callback);
    };

    this.delete = function (postData,callback) {
        $http.post(servicePath + 'employee/delete',postData).success(callback);
    };

    this.orders = function (getData,callback) {
        $http.get(servicePath + 'employee/orders',{params : getData}).success(callback);
    };

}]);
